package cn.school.workflow.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import cn.school.student.entity.StudentInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 学生请假自提VO
 */
@Data
@TableName("t_workflow_student_leave_self_apply")
public class StudentLeaveSelfApplyVO extends BaseVO {


    private static final long serialVersionUID = 7975777337910623653L;

    @ApiModelProperty(value = "申请单编号")
    private String applyNo;

    @ApiModelProperty(value = "流程ID")
    private String processId;

    @ApiModelProperty(value = "学生ID")
    private String studentId;

    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    @ApiModelProperty(value = "班级ID")
    private String classId;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "请假开始时间")
    private String leaveStartTime;

    @ApiModelProperty(value = "请假结束时间")
    private String leaveEndTime;

    @ApiModelProperty(value = "请假总天数")
    private String leaveTotalTime;

    @ApiModelProperty(value = "请假类型")
    private String leaveType;

    @ApiModelProperty(value = "请假理由")
    private String leaveRemarks;

    @ApiModelProperty(value = "附件")
    private String leaveFile;

    @ApiModelProperty(value = "请假状态 0-草稿 1-待审批 2-审批被驳回 3-流程正常结束 4-撤销")
    private String status;

    @ApiModelProperty(value = "当前审批人")
    private String currApprovedBy;


    @ApiModelProperty(value = "抄送人")
    private String ccUsers;

    @ApiModelProperty(value = "是否已销假")
    private String isReport;

    @TableField(exist = false)
    private String times;
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;
    @TableField(exist = false)
    private String name;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

    @TableField(exist = false)
    private StudentInfo studentInfo;
}
